package com.happystudy.tools;

import javax.xml.crypto.Data;
import java.io.Serializable;
import java.util.Date;

public class TaskInfo implements Serializable {

    private static final long serialVersionUID = 590397325592038665L;

    private String courseName;

    private String taskName;

    private Integer taskId;

    private Date taskDueTime;

    private Date startTime;

    private Date endTime;

    public TaskInfo(String courseName, String taskName, Integer taskId, Date startTime, Date endTime) {
        this.courseName = courseName;
        this.taskName = taskName;
        this.taskId = taskId;
        this.startTime = startTime;
        this.endTime = endTime;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public TaskInfo() {

    }

    public TaskInfo(String courseName, String taskName, Integer taskId, Date taskDueTime) {
        this.courseName = courseName;
        this.taskName = taskName;
        this.taskId = taskId;
        this.taskDueTime = taskDueTime;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public Integer getTaskId() {
        return taskId;
    }

    public void setTaskId(Integer taskId) {
        this.taskId = taskId;
    }

    public Date getTaskDueTime() {
        return taskDueTime;
    }

    public void setTaskDueTime(Date taskDueTime) {
        this.taskDueTime = taskDueTime;
    }

    @Override
    public String toString() {
        return "TaskInfo{" +
                "courseName='" + courseName + '\'' +
                ", taskName='" + taskName + '\'' +
                ", taskId=" + taskId +
                ", taskDueTime=" + taskDueTime +
                '}';
    }
}

